<?php /* Smarty version 2.6.12, created on 2008-10-30 15:53:35
         compiled from modules/Wishlist/wishlists.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'modules/Wishlist/wishlists.tpl', 19, false),array('modifier', 'strip_tags', 'modules/Wishlist/wishlists.tpl', 42, false),array('modifier', 'substitute', 'modules/Wishlist/wishlists.tpl', 56, false),array('function', 'cycle', 'modules/Wishlist/wishlists.tpl', 89, false),)), $this); ?>
<?php func_load_lang($this, "modules/Wishlist/wishlists.tpl","lbl_search_wishlists,txt_admin_wishlists,lbl_customer,lbl_sku,lbl_productid,lbl_product,lbl_search,lbl_search_wishlists,txt_N_results_found,txt_displaying_X_Y_results,txt_N_results_found,lbl_search_again,lbl_customer,lbl_items,lbl_n_items_in_wishlist,lbl_search_results"); ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "page_title.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_search_wishlists'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo $this->_tpl_vars['lng']['txt_admin_wishlists']; ?>


<br /><br />

<?php if ($this->_tpl_vars['wishlists'] == ''): ?>

<?php ob_start(); ?>
<form name="searchform" action="wishlists.php" method="post">
<input type="hidden" name="mode" value="search" />

<table cellpadding="1" cellspacing="5" width="100%">

<tr>
	<td height="10" class="FormButton" nowrap="nowrap"><?php echo $this->_tpl_vars['lng']['lbl_customer']; ?>
:</td>
	<td width="10" height="10">&nbsp;</td>
	<td height="10" width="100%"><input type="text" name="search_data[login]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['search_data']['login'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
</tr>
<tr>
	<td height="10" class="FormButton" nowrap="nowrap"><?php echo $this->_tpl_vars['lng']['lbl_sku']; ?>
:</td>
	<td width="10" height="10">&nbsp;</td>
	<td height="10" width="100%"><input type="text" name="search_data[sku]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['search_data']['sku'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
</tr>
<tr>
	<td height="10" class="FormButton" nowrap="nowrap"><?php echo $this->_tpl_vars['lng']['lbl_productid']; ?>
:</td>
	<td width="10" height="10">&nbsp;</td>
	<td height="10" width="100%"><input type="text" name="search_data[productid]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['search_data']['productid'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
</tr>
<tr>
	<td height="10" class="FormButton" nowrap="nowrap"><?php echo $this->_tpl_vars['lng']['lbl_product']; ?>
:</td>
	<td width="10" height="10">&nbsp;</td>
	<td height="10" width="100%"><input type="text" name="search_data[product]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['search_data']['product'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" size="40" /></td>
</tr>

<tr>
	<td colspan="3">&nbsp;</td>
</tr>
<tr>
	<td colspan="2">&nbsp;</td>
	<td><input type="submit" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_search'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
</tr>

</table>
</form>
<?php $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean();  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_search_wishlists'],'content' => $this->_smarty_vars['capture']['dialog'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<br />

<?php endif; ?>

<?php if ($this->_tpl_vars['mode'] == 'search'):  if ($this->_tpl_vars['total_items'] >= 1):  echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_N_results_found'])) ? $this->_run_mod_handler('substitute', true, $_tmp, 'items', $this->_tpl_vars['total_items']) : smarty_modifier_substitute($_tmp, 'items', $this->_tpl_vars['total_items'])); ?>
<br />
<?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_displaying_X_Y_results'])) ? $this->_run_mod_handler('substitute', true, $_tmp, 'first_item', $this->_tpl_vars['first_item'], 'last_item', $this->_tpl_vars['last_item']) : smarty_modifier_substitute($_tmp, 'first_item', $this->_tpl_vars['first_item'], 'last_item', $this->_tpl_vars['last_item'])); ?>

<?php else:  echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_N_results_found'])) ? $this->_run_mod_handler('substitute', true, $_tmp, 'items', 0) : smarty_modifier_substitute($_tmp, 'items', 0)); ?>

<?php endif;  endif; ?>

<?php if ($this->_tpl_vars['mode'] == 'search' && $this->_tpl_vars['wishlists'] != ""): ?>

<br /><br />

<?php ob_start(); ?>

<div align="right"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "buttons/button.tpl", 'smarty_include_vars' => array('button_title' => $this->_tpl_vars['lng']['lbl_search_again'],'href' => "wishlists.php")));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></div>

<br />

<?php if ($this->_tpl_vars['total_pages'] >= 2):  $this->assign('navpage', $this->_tpl_vars['navigation_page']);  endif; ?>


<table cellpadding="0" cellspacing="0" width="100%">
<tr><td>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "customer/main/navigation.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<table cellpadding="1" cellspacing="2" width="100%">
<tr class="TableHead">
	<td><?php echo $this->_tpl_vars['lng']['lbl_customer']; ?>
</td>
	<td><?php echo $this->_tpl_vars['lng']['lbl_items']; ?>
</td>
</tr>
<?php $_from = $this->_tpl_vars['wishlists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
<tr<?php echo smarty_function_cycle(array('name' => 'c1','values' => ', class="TableSubHead"'), $this);?>
>
	<td><?php if ($this->_tpl_vars['usertype'] == 'A' || ( $this->_tpl_vars['usertype'] == 'P' && $this->_tpl_vars['active_modules']['Simple_Mode'] != "" )): ?><a href="user_modify.php?user=<?php echo ((is_array($_tmp=$this->_tpl_vars['v']['login'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
&amp;usertype=<?php echo $this->_tpl_vars['v']['usertype']; ?>
"><?php echo $this->_tpl_vars['v']['firstname']; ?>
&nbsp;<?php echo $this->_tpl_vars['v']['lastname']; ?>
&nbsp;(<?php echo $this->_tpl_vars['v']['login']; ?>
)</a><?php else:  echo $this->_tpl_vars['v']['firstname']; ?>
&nbsp;<?php echo $this->_tpl_vars['v']['lastname']; ?>
&nbsp;(<?php echo $this->_tpl_vars['v']['login']; ?>
)<?php endif; ?></td>
	<td><a href="wishlists.php?mode=wishlist&amp;customer=<?php echo $this->_tpl_vars['v']['login']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['lbl_n_items_in_wishlist'])) ? $this->_run_mod_handler('substitute', true, $_tmp, 'items', $this->_tpl_vars['v']['products_count']) : smarty_modifier_substitute($_tmp, 'items', $this->_tpl_vars['v']['products_count'])); ?>
</a></td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</table>

<br />

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "customer/main/navigation.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

</td></tr>

</table>
<?php $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean();  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_search_results'],'content' => $this->_smarty_vars['capture']['dialog'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php endif; ?>